#include<iostream>
#include"client.hpp"
void usage(std::string proc)
{
    std::cout << "Usage:\n\t" << proc << " serverip serverport\n" << std::endl;
}
int main(int argc,char* argv[])
{
    if(argc!=3)
    {
        usage(argv[0]);
        exit(USAGE_ERR);
    }
    std::string ip=argv[1];
    uint16_t port=atoi(argv[2]);
    UDP_client::client* uClient=new UDP_client::client(ip,port);
    uClient->start();
    delete uClient;
    return 0;
}